<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/javascript">
$(function(){
	//初始化表单验证
	$("#addForm").validate({
		rules: {
			gbprice: {isMoney: true},
		},
		messages: {
			name: {required: "请输入商品标题"},
			
		},
		submitHandler:function(form){
			$(form).ajaxSubmit({
				success:function(data){
					switch(data.flag){
					case 1:
						Kit.alert("运单号已使用，请确认");return;
					case 2:
						Kit.alert("订单已发货，请刷新");return;
					/* case -1:
						Kit.alert("网络繁忙...，请重试");return;  */
					case 0:
						/* dataPaginator.loadPage(1); */
						toAddWaybillDialog.close();
						return;
					}
				}
			});
		}
	});
}); 


</script>


	<!-- 详情窗口 -->
<form id="addForm" class="form-horizontal" style="">
	<!-- <div class="form-group">
	    <label class="col-lg-2 control-label"><span style="margin-right:10px; color:red;">*</span>市场售价</label>
	    <div class="col-lg-3">
        	<input type="text" name="sellPrice" id="sellPrice" class="form-control" onkeyup="(this.v3=function(){this.value=this.value.replace(/[^0-9-.]+/,'');}).call(this)" onblur="this.v3();" placeholder="请输入商品市场价" />
	    </div>
	</div> -->
	<div class="form-group" >	
		<lable class="col-lg-2 control-label">订单号码：</lable>
		<div class="col-lg-4">
		${orderNum}
		</div>
	</div>
	<div class="form-group" >	
		<lable class="col-lg-2 control-label">快递公司：</lable>
		<div class="col-lg-4">
			<select id="charset" name="charset" class="selectpicker" data-width="265px" disabled>
				<c:forEach items="${listLogistics}" var="logistics">
					<option value="${logistics.charset}" <c:if test="${logistics.charset==orderLogistics.charset}">selected</c:if> >${logistics.title }</option>
				</c:forEach>
			</select>
		</div>
	</div>
	<div class="form-group" >	
		<lable class="col-lg-2 control-label">运单号码：</lable>
		<div class="col-lg-4">
			<input type="text" class="form-control" name="logisticCode" id="logisticCode" value="${orderLogistics.logisticCode}"  disabled/>
		</div>
	</div>
	<div class="form-group" >	
		<lable class="col-lg-2 control-label">运费：</lable>
		<div class="col-lg-4">
			<input type="text" class="form-control" name="orderPay" id="orderPay" value="${orderLogistics.orderPay}" disabled/>
		</div>
	</div>
	<div class="form-group" >	
		<lable class="col-lg-2 control-label">发货公司：</lable>
		<div class="col-lg-4">
			<select id="sendSeller" name="sendSeller" class="selectpicker" data-width="265px" disabled>
				<c:forEach items="${listSendSeller}" var="sendSeller">
					<option value="${sendSeller.sendSellerName}" <c:if test="${logistics.sendSellerName==orderLogistics.sendSellerName}">selected</c:if> >${sendSeller.sendSellerName }</option>
				</c:forEach>
			</select>
		</div>
	</div>
</form>
